package com.icekrvams.billing.utilities

import android.util.Log
import com.icekrvams.billing.Billing

internal fun String.dLog(tag: String? = Constants.TAG) {
    if (Billing.logEnabled) {
        Log.d(tag, this)
    }
}

internal fun String.iLog(tag: String? = Constants.TAG) {
    if (Billing.logEnabled) {
        Log.i(tag, this)
    }
}

internal fun String.eLog(tag: String? = Constants.TAG) {
    if (Billing.logEnabled) {
        Log.e(tag, this)
    }
}

internal fun String.wtfLog(tag: String? = Constants.TAG) {
    if (Billing.logEnabled) {
        Log.wtf(tag, this)
    }
}
